package org.goodsmanager.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 安全配置类
 * 
 * @author Goods Manager System
 * @version 1.0.0
 */
@Configuration
public class SecurityConfig {
    
    /**
     * 密码编码器
     */
    @Bean
    public BCryptPasswordEncoder passwordEncoder() {
        // 从配置文件读取加密强度
        return new BCryptPasswordEncoder();
    }
}